package Test;

public class Student {
    private String name;
    private int age;

    public Student(){
        name = "小明";
        age = 20;
    }

    public Student(String name, int age){
        this.name = name;
        this.age = age;
    }

    //重写 toString 方法
    @Override
    public String toString(){
        return "Student{name= "+name+", age= "+age+"}";
    }

}
